package edu.sctu.renpingan.timemanege;

        import java.text.ParseException;
        import java.text.SimpleDateFormat;
        import java.util.Date;

/**
 * Created by Administrator on 2015/6/7.
 */
public class TimeManege {
    public static void main(String[] args) {

    }

    public long countgetintimestamp() throws ParseException {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        String getinTime = "2015/06/02 09:05:52";
        Date date1 = simpleDateFormat.parse(getinTime);
        long getintimestamp = date1.getTime();

        return getintimestamp;
    }
    public long countUsetimetimestamp(int m,int s) throws ParseException {

        long usetimetimestamp = (m*60 * 1000) + (s * 1000);

        return usetimetimestamp;
    }
    public void getouttime() throws ParseException {
        long getouttimetimestamp = countgetintimestamp()+countUsetimetimestamp(20,53);
        String date2 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(getouttimetimestamp);
        System.out.println(date2);

    }


}
